package com.yf.kaibiyuanze.impl;

import com.yf.kaibiyuanze.Icourse;

/**
 * @Author Yang_Vincent
 * @Date 2020/8/17 23:01
 */
public class JavaCourse implements Icourse {

    private Integer Id;
    private String name;
    private Double price;

    @Override
    public Integer getId() {
        return this.Id;
    }

    @Override
    public String getName() {
        return this.name;
    }

    @Override
    public Double getPrice() {
        return this.price;
    }

    public JavaCourse(Integer id, String name, Double price) {
        Id = id;
        this.name = name;
        this.price = price;
    }

    @Override
    public String toString() {
        return "JavaCourse{" +
                "Id=" + Id +
                ", name='" + name + '\'' +
                ", price=" + price +
                '}';
    }
}
